<!DOCTYPE html>

<html>
<head>
    <title>OpenURL</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

</head>

<body>
<h1>Open URL v1.0</h1>

<hr/>

<h3>Api List</h3>
<table border="1" width="100%">
    <tr>
        <th>Path</th>
        <th>Result</th>
        <th>Operation</th>
    </tr>
{{range $index, $element := .Mapping}}
    <tr>
        <td><a href="/api/{{$index}}">/api/{{$index}}</a></td>
        <td>{{$element}}</td>
        <td>
            <button onclick="">Copy</button>
            <button onclick="">Delete</button>
        </td>
    </tr>
{{end}}
</table>

<hr/>
<h3>Add a new API</h3>
<form action="/add" method="post">
    <table title="Add a new API" border="1">
        <tr>
            <th>Tag</th>
            <td><input name="tag"/></td>
        </tr>
        <tr>
            <th>Result</th>
            <td><input name="result"/></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit"/>
                <input type="reset"/>
            </td>
        </tr>
    </table>
</form>

</body>
</html>
